package com.stu.aspectj2;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAop {
	ApplicationContext context=new ClassPathXmlApplicationContext("com/stu/aspectj2/aop.xml");
	@Test
	public void test() {
		UserDao userDao=(UserDao) context.getBean("userDao");
		userDao.addUser();
	}
}
